Skip to content

Earlier cli parsing and refactors #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 19, 2025

Conversation

Dlurak
Copy link
Contributor

@Dlurak Dlurak commented Apr 18, 2025

Previously the cli arguments in form of the Config struct was only parsed once the left mouse button is released. This is problematic for arguments like --version or --help, ferrishot would start but abort when the mouse button is released to show the version.

Now the Config is part of App and the cli arguments are parsed when iced inits App.

Also I did some refactors to have less/smaller if clauses in a match expression, no problem if you don't like those just let me know :)

@nik-rev
Copy link
Owner

nik-rev commented Apr 19, 2025

Thanks!

@nik-rev nik-rev merged commit 557a7cc into nik-rev:main Apr 19, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants